package frame.options.simulation;

import java.awt.event.KeyEvent;

import javax.swing.JMenu;

import frame.MopraFrame;

@SuppressWarnings("serial")
public class SimulationMenu extends JMenu
{	
	private MopraFrame mopraFrame;
	public MopraFrame getFrame(){ return mopraFrame; }
	public void setFrame( MopraFrame mopraFrame ){ this.mopraFrame = mopraFrame; }
	
	private CreateSimulationMenuItem createSimulationMenuItem;
	public CreateSimulationMenuItem getCreateSimulationMenuItem(){ return createSimulationMenuItem; }
	public void setCreateSimulationMenuItem( CreateSimulationMenuItem createSimulationMenuItem ){ this.createSimulationMenuItem = createSimulationMenuItem; }
	
	public SimulationMenu( MopraFrame mopraFrame )
	{
		this.setFrame( mopraFrame );
		this.setCreateSimulationMenuItem( new CreateSimulationMenuItem( mopraFrame ) );
		
		this.setText( "Simulation" );
		this.setMnemonic( KeyEvent.VK_I );
		this.add( this.getCreateSimulationMenuItem() );
	}
	
}
